package com.project.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
public static String changeTime(Date date) {
	SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
	String time = dateFormat.format(date); 
	return time;
}
public static String changeTimes(Date date) {
	SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");
	String time = dateFormat.format(date); 
	return time;
}
}
